<layout name="Layout/layout" />
<div class="row">
	<div class="col-lg-12">
		<h1 class="page-header">报名情况</h1>
	</div>
	<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
	<div class="col-lg-12">
		<div class="panel panel-default">
			<div class="panel-heading">
				报名列表
			</div>
			<!-- /.panel-heading -->
			<div class="panel-body">
				<form role="form" method="post" action="{:U('Admin/Enroll/search')}">
								<input type="hidden" name="index" value="search"></input>
								报名用户：<input type="text" class="form-control" name="name"></input>
								报名时间：<input type="date" class="form-control" name="enrolltime"></input>
								最后更新时间：<input type="date" class="form-control" name="uptime"></input>
								是否已经支付：<select class="form-control" name="ispayed">
										<option value=""></option>
										<option value="1">是</option>
										<option value="0">否</option>
									</select>
								报名专业：<input type="text" class="form-control" name="major"></input>
								考点：<input type="text" class="form-control" name="examcenter"></input>
								高考省份：<select name="province" class="form-control">
										<option value=""></option>
										<foreach name="provincelist" item="vo">
											<option value="{$vo['code']}">{$vo['name']}</option>
										</foreach>
									</select>
								考生号：<input type="text" class="form-control" name="stunumber"></input>
								通讯地址：<input type="text" class="form-control" name="address"></input>
								邮政编码：<input type="text" class="form-control" name="zipcode"></input>
								父母电话：<input type="text" class="form-control" name="telofparent"></input>
								本人电话：<input type="text" class="form-control" name="tel"></input>
								性别：<select name="sex" class="form-control">
										<option value=""></option>
										<option value="1">男</option>
										<option value="0">女</option>
										<option value="2">其他</option>
									</select>
								生日：<input type="date" class="form-control" name="birthday"></input>
								政治面貌：<select name="politics" class="form-control">
										<option value=""></option>
										<foreach name="politiclist" item="vo">
											<option value="{$vo['code']}">{$vo['name']}</option>
										</foreach>
									</select>
								应往届：<select name="isfresh" class="form-control">
										<option value=""></option>
										<option value="1">应届</option>
										<option value="0">往届</option>
									</select>
								民族：<select name="nation" class="form-control">
										<option value=""></option>
										<foreach name="nationlist" item="vo">
											<option value="{$vo['code']}">{$vo['name']}</option>
										</foreach>
									</select>
								所在学校：<input type="text" class="form-control" name="school"></input>
								本人qq：<input type="text" class="form-control" name="qq"></input>
								<button type="submit" class="btn btn-default">查询</button>
								</form>


							<?php
								$head = array(
									'id'	=>	array('ID', 'doNothing'),
									'uid'	=>	array('报名用户','getUsername'),
									'enrolltime'    =>  array('报名时间','formatDate'),
									'uptime'    =>  array('最后更新时间','formatDate'),
									'ispayed'   =>  array('是否已经支付','isPayed'),
									'major' =>  array('报名专业','getMajorNames'),
									'examcenter'    =>  array('考点','getExamcenterName'),
									'province'  =>  array('高考省份', 'getProvinceName'),
									'stunumber' =>  array('考生号', 'doNothing'),
									'address'   =>  array('通讯地址', 'doNothing'),
									'zipcode'   =>  array('邮政编码', 'doNothing'),
									'telofparent'   =>  array('家长电话', 'doNothing'),
									'tel'   =>  array('本人电话', 'doNothing'),
									'sex'   =>  array('性别', 'getSex'),
									'birthday'  =>  array('生日', 'doNothing'),
									'politics'  =>  array('政治面貌', 'getPolitics'),
									'isfresh'   =>  array('应往届', 'getisfresh'),
									'nation'    =>  array('民族', 'getNation'),
									'school'    =>  array('所在学校', 'doNothing'),
									'qq'    =>  array('本人qq', 'doNothing')
								);

							?>
							{:W('Table/tableWithFunction', array($head, $enrolllist))}


			</div>
			<!-- /.panel-body -->
		</div>
		<!-- /.panel -->
	</div>
	<!-- /.col-lg-12 -->
</div>
<script>
window.onload = function(){
$('#dataTables-example').DataTable({
		responsive: true
});
}
</script>
